function popupWindow(url) 
{
  window.open(url,'_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no,width=400,height=300,screenX=150,screenY=150,top=150,left=150')
}

function openChild(file,window_number) 
{
	childWindow=open(file,window_number,'resizable=no,width=600,height=500,scrollbars=1');
	if (childWindow.opener == null) 
	{
		
		childWindow.opener = self;
		
	}
	childWindow.focus(); 
}

function UpdateParent(comp_dep_id, conn_id, userlogin, conn_name) 
{ 
	//opener.document.parentForm.owner_company_department_id.value = comp_dep_id;
	opener.document.parentForm.connection_id.value = conn_id;
    opener.document.getElementById('connection_name').firstChild.nodeValue = conn_name;
    opener.document.getElementById('login').firstChild.nodeValue = userlogin;
    opener.document.parentForm.login_restore.value = userlogin;
    opener.document.parentForm.connection_name_restore.value = conn_name;
    return false;
}